#6-7 MIC/LINE
himm 0x111F0028 0x600;
echo 55 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio55/direction

#gpio4-0:1 MIC/LINE
himm 0x114F006C 0x0400;himm 0x114F0070 0x0600
echo 32 > /sys/class/gpio/export
echo 33 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio32/direction
echo out > /sys/class/gpio/gpio33/direction

while true ; do

    sw=`cat /sys/class/gpio/gpio55/value`
    
    if [ "$sw" == "1" ] ; then 
        echo 0 > /sys/class/gpio/gpio32/value;echo 0 > /sys/class/gpio/gpio33/value;
    else
        echo 1 > /sys/class/gpio/gpio32/value;echo 1 > /sys/class/gpio/gpio33/value;
    fi

	sleep 1
done

